<%@page import="com.mmy.domain.train.TTrainOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>

<title>订单信息</title>
</head>
<body>
	
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
		<div id="menu-back">
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>订单信息</h2>			
		</div>
	</header>
	<section class="container">
	
				<nav class="breadcrumb" >
						<a href="myscenicreserve" >我的预留</a> |
				<a href="myscenicorder" >我的订单</a> |
					<a href="myscenicrefund" >我的退单</a> |
						<a href="mytender" >我的标书</a> 
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
					</nav>
			<div>
				
				
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>订单详细信息
						</h4>
				<div >
				<table class="info-table" >
				<tr>
					<th>火车名称</th>
					<td colspan="3">
						<input type="text" name="TrainName" value="${dbTrainPlan.getTrainName()}" readonly/><span class="mustWrite">*</span>
					</td>
					
					
				</tr>	
				<tr>
					<th>出发地</th>
					<td>
						
						<input type="text" name="ZoneOutName" value="${dbTrainPlan.getZoneOutName()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>出发车站</th>
					<td>
						<input type="text" name="StationOutName" value="${dbTrainPlan.getStationOutName()}" readonly/><span class="mustWrite">*</span>
					</td>
					
				</tr>
				<tr>
					<th>到达地</th>
					<td>
						
						<input type="text" name="ZoneInName" value="${dbTrainPlan.getZoneInName()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>到达车站</th>
					<td>
						<input type="text" name="StationInName" value="${dbTrainPlan.getStationInName()}" readonly/><span class="mustWrite">*</span>
					</td>
					
				</tr>
				<tr>
					<th>预留人姓名</th>
					<td>
						<input type="hidden" name="ID"  value="${dbTrainOrder.getID()}" >
						<input type="text" name="ReserveName" value="${dbTrainOrder.getReserveName()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>预留联系方式</th>
					<td>
						<input type="text" name="ReserveTel" value="${dbTrainOrder.getReserveTel()}" readonly/><span class="mustWrite">*</span>
					</td>
					
				</tr>
				<tr>
					<th>订单人姓名</th>
					<td>
						<input type="text" name="OrderName" value="${dbTrainOrder.getOrderName()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>订单联系方式</th>
					<td>
						<input type="text" name="OrderTel" value="${dbTrainOrder.getOrderTel()}" readonly/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>订单售价</th>
					<td>
						<input type="number" name="Price" value="${dbTrainOrder.getPrice()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>订单数量</th>
					<td>
						<input type="number"  value="1" readonly/><span class="mustWrite">*</span>
					</td>
				</tr>
				
				<tr>
					<th>订单总额</th>
					<td>
						<input type="number" name="OrderAmount" value="${dbTrainOrder.getOrderAmount()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>出纳审核状态</th>
					<c:choose>
						     <c:when test="${dbTrainOrder.getCashierState() == 0}">
						           <td>未审核</td>
						     </c:when>
						     <c:when test="${dbTrainOrder.getCashierState() == 1}">
						           <td>通过</td>
						     </c:when>
						    <c:otherwise>
						         <td>未通过</td>
						    </c:otherwise>
					</c:choose>
				</tr>
				<tr>
					<th>会计对账状态</th>
					<c:choose>
						     <c:when test="${dbTrainOrder.getAccountState() == 0}">
						           <td>未审核</td>
						     </c:when>
						     <c:when test="${dbTrainOrder.getAccountState() == 1}">
						           <td>通过</td>
						     </c:when>
						    <c:otherwise>
						         <td>未通过</td>
						    </c:otherwise>
					</c:choose>
					
					<th>发票打印状态</th>
					<c:choose>
						     <c:when test="${dbTrainOrder.getInvoiceState() == 0}">
						           <td>未打印</td>
						     </c:when>
						     <c:when test="${dbTrainOrder.getInvoiceState() == 1}">
						           <td>已打印</td>
						     </c:when>
						    <c:otherwise>
						         <td>已传真</td>
						    </c:otherwise>
					</c:choose>
				</tr>
				<tr>
					<th>退单打印状态</th>
					<c:choose>
						     <c:when test="${dbTrainOrder.getRefundState() == 0}">
						           <td>未打印</td>
						     </c:when>
						     <c:when test="${dbTrainOrder.getRefundState() == 1}">
						           <td>已打印</td>
						     </c:when>
						    <c:otherwise>
						         <td>已传真</td>
						    </c:otherwise>
					</c:choose>
					
					<th>结账汇款状态</th>
					<c:choose>
						     <c:when test="${dbTrainOrder.getRemittanceState() == 0}">
						           <td>未汇</td>
						     </c:when>
						     <c:when test="${dbTrainOrder.getRemittanceState() == 1}">
						           <td>已汇</td>
						     </c:when>
					</c:choose>
				</tr>
				<tr>
					<th>备注</th>
					<td colspan="3">
						<textarea name="Memo" readonly>${dbTrainOrder.getMemo()}</textarea>
					</td>
				</tr>	
					
				</table>
				
				<center>
				
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 		
							
				</div>
				
				
			</div>
			</section>
			</article>
			</main>
			</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		<script>
			new GridScrollFx( document.getElementById( 'news-grid' ), {
				viewportFactor : 0.4
			} );
		</script>
</body>

</html>